    var i = 1;

    $(function () {
        $("#new-sli-img-container").find("a").click(function () {
            $("#new-sli-img").attr("src", $(this).attr("url"));
            $("#new-sli-img-container").find("a").removeClass("ban-nav-click");
            $(this).addClass("ban-nav-click");
            i = parseInt($(this).attr("num"));
        });

        window.setInterval(function () {
            var obj = $("#new-sli-img-container").find("a[num=" + i.toString() + "]");

            $("#new-sli-img").attr("src", $(obj).attr("url"));
            $("#new-sli-img-container").find("a").removeClass("ban-nav-click");
            $(obj).addClass("ban-nav-click");
            i = i + 1;

            if (i > 5) {
                i = 1;
            }
        }, 3000);
    });

 
